package treeedit;

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class LookManager
{
	private static LookManager instance = null;
	
	protected LookManager() {}
	
	public static LookManager getInstance( )
	{
		if(instance == null)
		{
			instance = new LookManager();
		}
		return instance;
	}
	
	public JLabel getFunctionLabel(JLabel label)
	{
		//label.setBorder(BorderFactory.createEtchedBorder());
		label.setForeground(new Color(148,0,211));
		label.setIcon(Configuration.getInstance().getFunctionIcon());
		//System.out.println(label.getIcon());
		return label;
	}
	
	public JLabel getStringLabel(JLabel label)
	{
		label.setBorder(BorderFactory.createEmptyBorder());
		label.setIcon(Configuration.getInstance().getStringIcon());
		label.setForeground(Color.CYAN);
		return label;
	}
	
	public JLabel getQuoteLabel(JLabel label)
	{
		label.setBorder(BorderFactory.createEmptyBorder());
		label.setIcon(Configuration.getInstance().getQuoteIcon());
		label.setForeground(Color.PINK);
		return label;
	}
	
	public JLabel getNormalLabel(JLabel label)
	{
		label.setBorder(BorderFactory.createEmptyBorder());
		label.setIcon(Configuration.getInstance().getNormalIcon());
		return label;
	}
	
	public JLabel getMarkedLabel(JLabel label)
	{
		label.setBorder(BorderFactory.createEmptyBorder());
		label.setIcon(Configuration.getInstance().getMarkedIcon());
		label.setForeground(Color.BLUE);
		return label;
	}
}
